package com.beiming.kotlindemo.activity

import androidx.appcompat.app.AlertDialog
import com.beiming.kotlindemo.R
import kotlinx.android.synthetic.main.activity_third.*

class ThirdActivity : BaseActivity() {

    override fun getContentResId() = R.layout.activity_third

    override fun initView() {
        btn3.setOnClickListener {
            AlertDialog.Builder(this).apply {
                setTitle("This is Dialog")
                setMessage("Something important")
                setCancelable(true)
                setPositiveButton("OK") { dialog, which ->
                }
                setNegativeButton("Cancel") { dialog, which ->
                }
                show()
            }
        }
    }

    override fun initData() {

    }
}
